<?php

/*
 * This page is for upldate content of selected agenda.
 */
include '../../include/config.php';
mysql_query("UPDATE `me_personal_agenda` SET `task_name` = '".$_POST['task_name']."', `task_detail` = '".$_POST['task_detail']."', `start_date` = '".date('Y-m-d', strtotime($_POST['start_date']))."', `end_date` = '".date('Y-m-d', strtotime($_POST['end_date']))."', `status` = '".$_POST['status']."' WHERE `me_personal_agenda`.`sr` = ".$_POST['task_id']."") or die(mysql_error());
header('Location:../view/Personal_Agenda');
?>
